﻿@namespace Csla.Blazor
@typeparam PropertyType
@inherits CslaValidationMessageBase<PropertyType>

<div id="@WrapperId" class="@WrapperClass">
  @if (_validationInitiated)
  {
    <div class="@ErrorWrapperClass">
      @foreach (string message in GetErrorMessages())
      {
        <div class="@ErrorClass">@message</div>
      }
    </div>
    <div class="@WarningWrapperClass">
      @foreach (string message in GetWarningMessages())
      {
        <div class="@WarningClass">@message</div>
      }
    </div>
    <div class="@InfoWrapperClass">
      @foreach (string message in GetInfoMessages())
      {
        <div class="@InfoClass">@message</div>
      }
    </div>
  }
</div>

